EXTEND: Now it's time to extend your program!

  1. Try adding a fourth parameter variable to your function: for example, food.
  2. Add text that uses the new parameter: for example, "Please bring your favorite " + food + " dish."
  3. Add an argument (value) to the function call: for example, "pasta".
  4. When you're finished, click Submit to turn in your work and continue.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)